<?php


$name_event = array(
		'name'	=> 'name_event',
		'id'	=> 'name_event',
		'value' => set_value('name_event', $party_infos['name_event']),
		'size'	=> 30,
);
$content = array(
		'name'	=> 'content',
		'id'	=> 'content',
		'value' => set_value('content', $party_infos['content']),
		'cols'	=> 50,
		'rows' => 5,
);
$activated_party = array(
		'name'	=> 'activated_party',
		'id'	=> 'activated_party',
		'value' => set_value('activated_party', $party_infos['activated_party']),
);
$activated_inscription = array(
		'name'	=> 'activated_inscription',
		'id'	=> 'activated_inscription',
		'value' => set_value('activated_inscription', $party_infos['activated_inscription']),
);

$flyer_front = array(
	'name'	=> 'flyer_front',
	'id'	=> 'flyer_front',
	'value' => set_value('flyer_front',$party_infos['flyer_front']),
	'size'	=> 30,
);
$flyer_back = array(
	'name'	=> 'flyer_back',
	'id'	=> 'flyer_back',
	'value' => set_value('flyer_back',$party_infos['flyer_back']),
	'size'	=> 30,
);
$picture_menu = array(
	'name'	=> 'picture_menu',
	'id'	=> 'picture_menu',
	'value' => set_value('picture_menu',$party_infos['picture_menu']),
	'size'	=> 30,
); 


?>
<?php echo form_open($this->uri->uri_string()); ?>

<h2>Mettre à jour la soirée</h2>


<fieldset>
    <legend>Informations : </legend>
    
   

		<label><?php echo form_label('Titre de la soiree', $name_event['id']); ?></label>
		<input type="text" name="name_event" value="<?php echo $name_event['value'] ?>" />
		<label style="color: red;"><?php echo form_error($name_event['name']); ?><?php echo isset($errors[$name_event['name']])?$errors[$name_event['name']]:''; ?></label>
<br /><br />
		<label><?php echo form_label('Description', $content['id']); ?></label>
		<textarea rows="5" cols="50" name="content"><?php echo $content['value']?></textarea>
		<label style="color: red;"><?php echo form_error($content['name']); ?><?php echo isset($errors[$content['name']])?$errors[$content['name']]:''; ?></label>
<br /><br />
		<label><?php echo form_label('Mise en ligne', $activated_party['id']); ?></label>
		<input type="checkbox" value="<?php echo $activated_party['value'] ?>" />
		<label style="color: red;"><?php echo form_error($activated_party['name']); ?><?php echo isset($errors[$activated_party['name']])?$errors[$activated_party['name']]:''; ?></label>
<br /><br />
		<label><?php echo form_label('Inscriptions ouvertes', $activated_inscription['id']); ?></label>
		<input type="checkbox" value="<?php echo $activated_inscription['value'] ?>" />
		<label style="color: red;"><?php echo form_error($activated_inscription['name']); ?><?php echo isset($errors[$activated_inscription['name']])?$errors[$activated_inscription['name']]:''; ?></label>

<br /><br />


<?php echo form_submit('updateParty', 'Modifier'); ?>

<!-- <input type="submit" value="modifier" /> -->

</fieldset>

<?php echo form_close(); ?>


<?php echo form_open_multipart('admin/doUpload');?>
<fieldset>
    <legend>Charger les images : </legend>
    


<input type="file" name="userfile_1" size="20" />
<br /><br />
<input type="file" name="userfile_2" size="20" />
<br /><br />
<input type="file" name="userfile_3" size="20" />

<br /><br />

<input type="submit" value="Charger les images" />
</fieldset>
</form>